package org.monster.ui;

import org.monster.service.PointService;


public class TotalUI {

	private void showUsage()throws Exception{
		
		System.out.println("1.create, 2.read, 3.delete, 4.update, 5.list, 6.sort -1.Exit");
		
		String oper = PointService.scanner.nextLine();
		
		PointUI ui = PointUIFactory.getUI(oper);

		ui.execute();
		
		
		showUsage();
		
	}
//		psi.removePointVO(vo.getName());
		
//		showUsage();


	public static void main(String[] args) {

		TotalUI ui = new TotalUI();
		
		try {
			ui.showUsage();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

}
